/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found
Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Windows 7, RHEL 5.4, CENTOS 5.4, RHEL 6
Posts: 55
Rep:
/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found
Hi Guys,
I'm running RHEL6 and Centos 6 and I get the following error
/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found
on one of the programs I need to run on the system. I'm currently at gcc version 4.7.0. When i do the following command "strings /usr/lib/libstdc++.so.6 | grep GLIBCXX"
I get: so it looks like 3.4.15 is there. Any ideas on how I can correct this issue?
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420
Rep:
Hi,
GLIBCXX_3.4.15 file is in package gcc.
Try to extract the same file from the gcc package and again paste it in its particular location. It should work then.
Distribution: Windows 7, RHEL 5.4, CENTOS 5.4, RHEL 6
Posts: 55
Original Poster
Rep:
Quote:
Originally Posted by Satyaveer Arya
Hi,
GLIBCXX_3.4.15 file is in package gcc.
Try to extract the same file from the gcc package and again paste it in its particular location. It should work then.
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420
Rep:
No, not to re-install the gcc package.
Just extract the gcc package and there would be a file "GLIBCXX_3.4.15" there. Paste that file at that location where all other such files are there.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
The "libstdc++-so.6" from gcc-4.7.0 should do OK.
? May be the libstdc++-so.6 in /usr/lib/ is the EL6 default ?
I.e the libstdc++.so.6 from gcc version 4.4.6 ?
A reinstall of gcc (-4.4.6) will not work.
Neither will a reinstall of libstdc++.
The object GLIBCXX_3.4.15 is from a gcc version 4.6 or later, I think.
Quote:
on one of the programs I need to run on the system
Which program ? ? And : Is the program in question the right architecture ?
( i686 or x86_64 )
Distribution: Windows 7, RHEL 5.4, CENTOS 5.4, RHEL 6
Posts: 55
Original Poster
Rep:
Quote:
Originally Posted by knudfl
The "libstdc++-so.6" from gcc-4.7.0 should do OK.
? May be the libstdc++-so.6 in /usr/lib/ is the EL6 default ?
I.e the libstdc++.so.6 from gcc version 4.4.6 ?
A reinstall of gcc (-4.4.6) will not work.
Neither will a reinstall of libstdc++.
The object GLIBCXX_3.4.15 is from a gcc version 4.6 or later, I think.
Which program ? ? And : Is the program in question the right architecture ?
( i686 or x86_64 )
.
That is a lot of help! How do I install gcc-4.7.0? is it an rpm package or a tarball? The program is firefox.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Your post # 1 says : ""I'm currently at gcc version 4.7.0.""
So I assumed, you had gcc-4.7.0 installed.
Firefox : Is it version 14 ?
Replacing libstdc++-so.6 with a later version that works in EL6:
Unpack libstdc++6_4.7.1-2_i386.deb http://ftp.de.debian.org/debian/pool...7.1-2_i386.deb
with : ar -x libstdc++6_4.7.1-2_i386.deb && tar xvf data.tar.gz
Next : 1) su ; 2) cp libstdc++.so.6.0.17 /usr/lib/
3) cd /usr/lib/ && rm libstdc++.so.6
4) ln -s libstdc++.so.6.17 libstdc++.so.6
Reason for suggesting the Debian package :
It's a ( gcc ) libstdc++ version that's compiled with a glibc
old enugh to be used in EL6 / CentOS 6.
Distribution: Windows 7, RHEL 5.4, CENTOS 5.4, RHEL 6
Posts: 55
Original Poster
Rep:
Quote:
Originally Posted by knudfl
Your post # 1 says : ""I'm currently at gcc version 4.7.0.""
So I assumed, you had gcc-4.7.0 installed.
Firefox : Is it version 14 ?
Replacing libstdc++-so.6 with a later version that works in EL6:
Unpack libstdc++6_4.7.1-2_i386.deb http://ftp.de.debian.org/debian/pool...7.1-2_i386.deb
with : ar -x libstdc++6_4.7.1-2_i386.deb && tar xvf data.tar.gz
Next : 1) su ; 2) cp libstdc++.so.6.0.17 /usr/lib/
3) cd /usr/lib/ && rm libstdc++.so.6
4) ln -s libstdc++.so.6.17 libstdc++.so.6
.
Thank you so much! This has been great help. Yes it is FF 14. My system is at gcc 4.7 but I think I have a stock RHEL6 library lingering. The deb package will give me the correct libstdc++ you think?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.